#include "Thread.hpp"
#include <cstdio>
#include <unistd.h>
#include <iostream>
#include <cstdio>
#include <vector>

using namespace std;

void Print()
{
    while(true)
    {
        printf("Hello Linux\n");
        sleep(1);
    }
}

int main()
{
    vector<Thread> threads;

    for(int i = 0; i < 5; i++)
    {
        threads.push_back(Thread(Print));
    }

    for(auto &thread : threads)
    {
        thread.Run();
    }

    for(auto &thread : threads)
    {
        thread.Join();
    }


    return 0;
}
